
var canvas = new fabric.Canvas('main');

var path = new fabric.Path("M 0 0 L 200 200 L 170 200 z")

path.set({
    fill:"red",
    left:100,
    top:100,
    
})

canvas.add(path);